home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / asm32.zip / HELLO32.ASM < prev    next >
Assembly Source File  |  1995-08-30  |  439b  |  28 lines

  1. ; HELLO32.ASM - a simple ASM32 demonstration program
  2.  
  3. include    model.inc
  4.  
  5. public    main32            ; this is the main code, called by START_DP
  6.  
  7. include    dataseg.inc
  8. hello    db 'Hello from 32-bit P-mode',0Dh,0Ah,'$'
  9. @curseg    ends
  10.  
  11. include    codeseg.inc
  12.  
  13. main32    proc    near
  14.  
  15. ; use ordinary DOS function to print string on screen
  16.  
  17.     lea    edx,hello
  18.     mov    ah,9
  19.     int    21h
  20.  
  21. ; return to startup/exit code
  22.     ret
  23.  
  24. main32    endp
  25.  
  26. @curseg    ends
  27.     end
  28.